/*
*  Copyright 2019-2025 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.dao;

import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import java.sql.Timestamp;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
* @description /
* @author laoxu
* @date 2025-06-24
**/
@Data
@TableName("iws_ware_nest")
public class WareNestDao implements Serializable {

    @TableId(value = "item_bar_code")
    @ApiModelProperty(value = "物料的唯一标识")
    private String itemBarCode;

    @ApiModelProperty(value = "原料、辅料、半成品")
    private String materialCategory;

    @ApiModelProperty(value = "仓库")
    private String floor;

    @ApiModelProperty(value = "物料的编号")
    private String materialCode;

    @ApiModelProperty(value = "物料的名称")
    private String materialName;

    @ApiModelProperty(value = "用于标识载具的唯一编码")
    private String containerCode;

    @ApiModelProperty(value = "储位编码")
    private String storeId;

    @ApiModelProperty(value = "物料的批次号")
    private String batchCode;

    @ApiModelProperty(value = "物料状态")
    private String materialStatus;

    @ApiModelProperty(value = "入厂时间")
    private Timestamp entryTime;

    @ApiModelProperty(value = "库存年龄")
    private String wareAge;

    @ApiModelProperty(value = "有效期")
    private String periodValidity;

    @ApiModelProperty(value = "是否超期")
    private String overdue;

    @ApiModelProperty(value = "是否冻结")
    private Integer disable;

    @ApiModelProperty(value = "冻结原因")
    private String freezeReason;

    @ApiModelProperty(value = "冻结时间")
    private Timestamp freezeDate;

    @ApiModelProperty(value = "供应商")
    private String manufacturers;

    @ApiModelProperty(value = "采购单号")
    private String purchaseCode;

    public void copy(WareNestDao source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
